#include "stdio.h"

int main() {
    char a;
    while((a = getchar())!= EOF)
{
    
    if(a>='A'&&a<='M')
    {
        putchar(a+13);
    }
    else if(a>='N'&&a<='Z')
    {
        putchar(a-13);
    }
    else
    {
        putchar(a);
    }
}
    return 0;
}